package cn.bugDance.domain.task.event;


import cn.bugDance.domain.task.model.valobj.SendAwardVO;
import cn.bugDance.types.response.BaseEvent;
import org.apache.commons.lang3.RandomStringUtils;

import java.util.Date;

public class SendAwardEvent extends BaseEvent<SendAwardVO> {

    public static String topic = "sendUserAwardTopic";

    public static SendAwardEvent create(SendAwardVO sendAwardVO){
        SendAwardEvent sendAwardEvent = new SendAwardEvent();

        sendAwardEvent.setId(RandomStringUtils.randomNumeric(12));
        sendAwardEvent.setData(sendAwardVO);
        sendAwardEvent.setTimestamp(new Date());
        return sendAwardEvent;
    }


}
